/*
 * CheaperMatcher.h
 *
 *  Created on: Sep 27, 2009
 *      Author: jbarreneche
 */

#ifndef CHEAPERMATCHER_H_
#define CHEAPERMATCHER_H_

#include "core/path/VisitedVertexInfo.h"

class CheaperMatcher : public Matcher<VisitedVertexInfo> {
public:
	CheaperMatcher();
	virtual ~CheaperMatcher();
	bool matches(VisitedVertexInfo* another);
	int getCheaperPosition();
	VisitedVertexInfo* getCheaper();
private:
	int hitCounter;
	int cheaperPosition;
	VisitedVertexInfo* cheaper;
};

#endif /* CHEAPERMATCHER_H_ */
